import request from '@/utils/request'
/**
* get list ?
* @param params {*}
*/
export function _get (params) {
    return request({
        url: '/branchStorePurchaseOrder/getBranchStorePurchaseOrderByPage',
        method: 'get',
        params: params
    })
}
export function _getAllBranchStorePurchaseOrder (params) {
    return request({
        url: '/branchStorePurchaseOrder/getAllBranchStorePurchaseOrder',
        method: 'get',
        params: params
    })
}

export function _statisticalQuantity (params) {
  return request({
    url: '/branchStorePurchaseOrder/statisticalQuantity',
    method: 'get',
    params: params
  })
}

export function _getById (params) {
  return request({
    url: '/branchStorePurchaseOrder/getBranchStorePurchaseOrderById',
    method: 'get',
    params: params
  })
}

/**
* get row ?
* @param params {*}
*/
export function _find (params) {
    return request({
        url: '/branchStorePurchaseOrder/findBranchStorePurchaseOrderByPage',
        method: 'get',
        params: params
    })
}

// 新增數據
export function _post (params) {
    return request({
        url: '/branchStorePurchaseOrder/addBranchStorePurchaseOrder',
        method: 'post',
        data: params
    })
}
// 修改數據
export function _put (id, params) {
    return request({
        url: '/branchStorePurchaseOrder/editBranchStorePurchaseOrder?idBraStoPurOrd=' + id,
        method: 'put',
        data: params
    })
}
// 刪除數據
export function _delete (params) {
    return request({
        url: '/branchStorePurchaseOrder/deleteBranchStorePurchaseOrder',
        method: 'delete',
        params: params
    })
}

// 後台發貨
export function _dealBranchStorePurchaseOrder (params) {
  return request({
    url: '/branchStorePurchaseOrder/dealBranchStorePurchaseOrder',
    method: 'post',
    data: params
  })
}
